<include file="Common:header" />
<!-- /. NAV SIDE  -->
<include file="Common:left" />
<!-- /. NAV SIDE  -->
<div id="page-wrapper">
	<div class="header">
		<h1 class="page-header">
			商品管理 <small>Welcome {$Think.config.system_tag}</small>
		</h1>
		<ol class="breadcrumb">
			<li><a href="{:U('Index/index')}">首页</a></li>
			<li class="active">商品评论列表</li>
			<div style="float:right"></div>
		</ol> 
	</div>
	<div id="page-inner">
		<div class="row">
			<div class="col-xs-12">
				<!--Search content-->
				<div class="panel panel-default" style="margin-bottom:0px; border-bottom:none">
					<div class="panel-body">
						<form class="layui-form" action="{:U('Goods/goodsCommentList')}" method="post">
							<div class="layui-form-item">
								<label class="layui-form-label" style="width:auto;">用户</label>
								<div class="layui-input-inline">
									<input value="{$filter.username}" type="text" name="username" placeholder="请输入用户名" autocomplete="off" class="layui-input">
								</div>
								<label class="layui-form-label" style="width:auto;">货号</label>
								<div class="layui-input-inline">
									<input value="{$filter.bn}" type="text" name="bn" placeholder="请输入货号" autocomplete="off" class="layui-input">
								</div>
								<label class="layui-form-label" style="width:auto;">商品名称</label>
								<div class="layui-input-inline">
									<input value="{$filter.goods_name}" type="text" name="goods_name" placeholder="请输入商品名称" autocomplete="off" class="layui-input">
								</div>
								<div class="layui-input-inline" style="width:auto;">
									<button type="submit" class="btn btn-default">搜索</button>
								</div>
							</div>
						</form>
					</div>
				</div>
				<!--Search content-->
				<!--Formlist content-->
				<div class="panel panel-default">
					<div class="panel-body">
						<div class="table-responsive">
							<table class="table table-hover">
								<thead>
									<tr>
										<th>序号</th>
										<th>商品名</th>
										<th>所属用户</th>
										<th>订单号</th>
										<th>状态</th>
										<th>时间</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody>
									<volist name="list" id="vo">
										<tr>
											<td style="line-height:30px">{$vo.id}</td>
											<td style="line-height:30px">{$vo.goods_name}</td>
											<td style="line-height:30px">{$vo.username}</td>
											<td style="line-height:30px">{$vo.order_id}</td>
											<td style="line-height:30px">
											<if condition="$vo.status eq 1">
											已审核
											<elseif condition="$vo.status eq 2" />
											审核未通过
											<else />
											待审核
											</if>
											</td>
											<td style="line-height:30px">{$vo.addtime}</td>
											<td>
											<a href="javascript:void(0)" class="layui-btn layui-btn-xs layui-btn-normal" onclick="openlayer('审核','{:U('Goods/auitGoodsComment',array('id'=>$vo['id']))}');return false;">审核</a>
											</td>
										</tr>
									</volist>
								</tbody>
							</table>
							{$page}
						</div>
					</div>
				</div>
				<!--Formlist content-->
			</div>
		</div>
	</div>
	<include file="Common:foot" />
	<script>
		layui.use('form', function(){
		  var form = layui.form;
		});
	</script>
	 <!-- /. PAGE INNER  -->
</div>
<include file="Common:footer" />
    